package array;

import java.io.PrintStream;
import java.util.Scanner;

public class Array {
	PrintStream out;
	static final int AANTAL_GETALLEN = 20;
	Array(){
		out = new PrintStream(System.out);

	}

	int[] stopInArray(){
		Scanner in = new Scanner(System.in);
		int[] array = new int[AANTAL_GETALLEN];
		int huidigAantal = 0;
		while(in.hasNext()){
			array[huidigAantal] = in.nextInt();
			huidigAantal += 1;
		}
		return array;
	}
	void leesAchterstevorenUit(int[] array){
		for(int i = AANTAL_GETALLEN - 1;i >= 0;i--){
			int getal = array[i];
			out.printf("%d ",getal);
		}
	}

	void start(){
		int[] array;
		array = stopInArray();
		leesAchterstevorenUit(array);
	}
	public static void main(String[] args) {
		new Array().start();	
	}

}
